<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#datagrid-buyers-list')}">
        <fieldset>
            <legend style="font-weight:normal;">页头搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>名称：</span>
                <input type="text" name="title" class="form-control" size="15">

                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">开始搜索！</button>
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-buyers-list" data-toggle="datagrid" data-options="{
        height: '100%',
        gridTitle : '单位列表',
        editMode: {dialog:{id:'buyers-custom-save', url:'/admin/buyers/custom-save?customer_id={{$customerId}}', type:'get', title:'单位管理', width:700, height:500}},
        showToolbar: true,
        toolbarItem: 'add',
        local: 'remote',
        dataUrl: '/admin/buyers/list',
        postData:{'customer_id': '{{$customerId}}' },
        editUrl: '/admin/buyers/save?customer_id={{$customerId}}',
        delUrl: '/admin/buyers/del',
        delPK: 'id',
        linenumberAll: true,
        sortAll: false,
        contextMenuH: true,
        contextMenuB: false,
        inlineEditMult: false,
        paging: {showPagenum:10, selectPageSize:'20,50,100', pageCurrent:1, pageSize:20},
        showEditbtnscol: '操作',
        customEditbtns: {width:200,position:'replace'},
        fullGrid: true,
        fieldSortable: false,
        filterThead: false,
        columnMenu: false,
        exportOption:{type:'file', options:{url:'admin/buyers/export', type:'get', data: {_token : '{{ csrf_token() }}'}}}
    }">
        <thead>
        <tr>
            <th data-options="{name:'buyer_name',align:'center',width:100}">单位名称</th>
            <th data-options="{name:'customer_name',align:'center',width:100}">客户名称</th>
        </tr>
        </thead>
    </table>
</div>
